package org.qiyu.live.api.controller;

import org.qiyu.live.api.vo.TestVO;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Program: qiyu-live-app
 * @Description:
 * @Author: zx
 * @Create: 2024-07-10 14:26
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @PostMapping("/testPost")
    public String testPost(String id) {
        System.out.println("id is: " + id);
        return "post";
    }

    @PostMapping("/testPost2")
    public String testPost2(TestVO vo) {
        System.out.println("id is: " + vo.getId());
        return "post2";
    }
}
